import React from "react";
import { HashRouter as Router, Route, Switch } from "react-router-dom";
import LoginPage from "./login/login";
import Main from "./main";
import { MenusStatus } from "../store/menus";
import { version } from "../config/env";

const App = () => {
  return (
    <MenusStatus>
      <div className="version"> 版本号:{version}</div>
      <Router>
        <Switch>
          <Route path="/" exact component={LoginPage}></Route>
          <Route path="/index/" component={Main}></Route>
        </Switch>
      </Router>
    </MenusStatus>
  );
};
export default App;
